package com.service;

import javax.annotation.PreDestroy;
import com.dto.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author HuangSuip
 */
public interface UserService {
     Logger LOGGER = LoggerFactory.getLogger("UserService");

    String getName();

    int insert(User user);

    @PreDestroy
    default void destory(){
        LOGGER.info("destory");
    }

}
